<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <!-- Bootstrap 的 CSS 文件 -->
  <link rel="stylesheet" type="text/css"
        href="../bootstrap-3.4.1-dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="../bootstrap-3.4.1-dist/css/font-awesome.min.css">
  <link rel="stylesheet" type="text/css" href="./css/admin.css">
  <title>后台首页</title>
  <style>
    .carousel-item{
      margin-top: 2rem;
      margin-left: 4rem;
      width: 90%;
      height: 68vh;
    }
    .carousel-item img{
      width: 90%;
      height: 68vh;
      background-size: contain;
    }
  </style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark table-danger">
  <a class="navbar-brand" href="../index.jsp">管理后台</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarColor02">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item">
        <a class="nav-link" href="admin.html">管理员</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="country.html">参赛国家</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="sporting.html">体育项目</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="athletes.html">参赛人员</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="award.html">获奖信息</a>
      </li>
    </ul>
    <div class="ml-auto">
      <button type="button" class="btn btn-light dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
        管理员
      </button>
      <div class="dropdown-menu dropdown-menu-right">
        <button class="dropdown-item" type="button">修改个人资料</button>
        <button class="dropdown-item" type="button">修改登录密码</button>
        <button class="dropdown-item" type="button">修改个人头像</button>
        <div class="dropdown-divider"></div>
        <button type="button" class="dropdown-item" data-toggle="modal" data-target="#exitDialog">安全退出</button>
      </div>
    </div>
  </div>
</nav>

<div class="modal fade" id="exitDialog" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">退出后台管理</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        您确定要退出后台管理吗？
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消退出</button>
        <a href="../logout.let" class="btn btn-primary _save">确定退出</a>
      </div>
    </div>
  </div>
</div>
  <h1 id="txt" style="color: red;position: relative;left: 15rem;top: 2rem;">将来的你,一定会感谢现在奋斗的自己!</h1>


<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fp4.itc.cn%2Fq_70%2Fimages03%2F20210904%2F398e692c943d4e2abffa097baaef66a0.jpeg&refer=http%3A%2F%2Fp4.itc.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1655282801&t=7b77dfff47ed6ebec8d0a003979b1766" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimgo.upan.cc%2Fimg2022%2F2%2F7%2F17%2F2022020774988461.jpg&refer=http%3A%2F%2Fimgo.upan.cc&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1655282801&t=bd0a2938a309f7c7dcc8c6f5d222351b" class="d-block w-100" alt="...">
    </div>
    <div class="carousel-item">
      <img src="https://img2.baidu.com/it/u=1876926794,2790679337&fm=253&fmt=auto&app=120&f=JPEG?w=690&h=382" class="d-block w-100" alt="...">
    </div>
  </div>
  <button class="carousel-control-prev" type="button" data-target="#carouselExampleControls" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </button>
  <button class="carousel-control-next" type="button" data-target="#carouselExampleControls" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </button>
</div>
<script>
  /*
  setInterval() 计时器
  substr()  字符串的截取
  */
  setInterval(function chage(){
    var str = document.getElementById("txt").innerHTML;
    var str1 = str.substr(0,1);//先截取第一个字符
    var str2 = str.substr(1);//从第一个字符后面开始，截取所有的字符
    // console.info(str2);
    document.getElementById("txt").innerHTML = str2 + str1;//将字符串拼接起来，赋给原字符串
  },1000)
</script>
<!-- 选项 1：jQuery 和 Bootstrap 集成包（集成了 Popper） -->
<script src="../bootstrap-3.4.1-dist/js/jquery-3.6.0.min.js"></script>
<script src="../bootstrap-3.4.1-dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>